import request from '@/utils/request'
/**@description 查询租赁关系表列表 */
export function listLease(query) {
  return request({
    url: '/system/lease/list',
    method: 'get',
    params: query
  })
}
/**@description 查询租赁关系表详细 */
export function getLease(id) {
  return request({
    url: '/system/lease/' + id,
    method: 'get'
  })
}
/**@description 新增租赁关系表 */
export function addLease(data) {
  return request({
    url: '/system/lease',
    method: 'post',
    data: data
  })
}
/**@description 修改租赁关系表 */
export function updateLease(data) {
  return request({
    url: '/system/lease',
    method: 'put',
    data: data
  })
}
/**@description 删除租赁关系表 */
export function delLease(id) {
  return request({
    url: '/system/lease/' + id,
    method: 'delete'
  })
}
/** 获取所有租客信息 */
export function getUserList() {
  return request({
    url: '/system/lease/userList',
    method: 'get',
  })
}
/** 获取所有房源信息 */
export function getHouseList() {
  return request({
    url: '/system/lease/houseList',
    method: 'get',
  })
}
